import request from '@/utils/request'

export function listCompose(query) {
  return request({
    url: '/system/user/list',
    method: 'get',
    params: query
  })
}
export function department(){
  return request({
    url:'/system/dept/treeselect',
    method:'get'
  })
} 
export function post(){
  return request({
    url:'/system/user/',
    method:'get'
  })
}
// 添加
export function addto(data){
  return request({
    url:'/system/user',
    method:'POST',
    data:data
  })
}
// 仓库数据
export function Warehousedata(query){
  return request({
    url:'/wms/warehourse/list',
    method:'get',
    params: query
  })
}
// 仓库添加
export function changeStatus(data){
  return request({
    url:'/wms/warehourse',
    method:'POST',
    data:data
  })
}
// 仓库修改
export function jurisdiction(data){
  return request({
    url:'/wms/warehourse',
    method:'put',
    data:data
  })
}
// 仓库删除
export function Deletewarehouse(wId){
  return request({
    url:'wms/warehourse/'+wId,
    method:'DELETE'
  })
}
// 货架数据
export function Shelfdata(query){
  return request({
    url:'/wms/shelves/list',
    method:'get',
    params: query
  })
}
// 货架新增
export function Shelfaddition(data){
  return request({
    url:'/wms/shelves',
    method:'post',
    data:data
  })
}
// 货架修改
export function Shelfmodification(data){
  return request({
    url:'/wms/shelves',
    method:'put',
    data:data
  })
}
// 货架删除
export function Shelfdeletion(sId){
  return request({
    url:'/wms/shelves/'+sId,
    method:'DELETE'
  })
}
// 货架查看
export function Viewshelves(query){
  return request({
    url:'/wms/product/list',
    method:'get',
    params:query
  })
}
// 货品信息
export function Goodsinformation(data){
  return request({
    url:'/wms/product',
    method:'post',
    data:data
  })
}
// 货品
export function Goods(query){
  return request({
    url:'/wms/product/list',
    method:'get',
    params:query
  })
} 
// 添加货品
export function Additem(data){
  return request({
    url:'/wms/list',
    method:'POST',
    data:data
  })
}
// 货品信息
export function information(query){
  return request({
    url:'/wms/list/list',
    method:'get',
    params:query
  })
}
// 修改货品信息
export function Modifygoods(data){
  return request({
    url:'/wms/list',
    method:'PUT',
    data:data
  })
}
// 删除货品信息
export function Deleteitem(infoId){
  return request({
    url:'/wms/list/'+infoId,
    method:'DELETE'
  })
}
// 货品信息
export function Informationmaintenance(query){
  return request({
    url:'/wms/product/list',
    method:'get',
    params:query
  })
}
// 客户 
export function customer(query){
  return request({
    url:'/wms/customer/list',
    method:'get',
    params:query
  })
}
// 维护搜索
export function Maintenancesearch(query){
  return request({
    url:'/wms/product/list',
    method:'get',
    params:query
  })
}
// 入库新增
export function Newwaybill(data){
  return request({
    url:'/wms/put',
    method:'post',
    data:data
  })
}
// 货品添加和库存
export function Itemaddition(query){
  return request({
    url:'/wms/product/list',
    method:'get',
    params:query
  })
}
// 商品确认
export function Commodityconfirmation(data){
  return request({
    url:'/wms/info',
    method:'post',
    data:data
  })
}
// 商品号
export function Commodityconf(query){
  return request({
    url:'/wms/info/list',
    method:'get',
    params:query
  })
}
// 修改数量
export function quantity(data){
  return request({
    url:'/wms/info',
    method:'put',
    data:data
  })
}
// 删除入库
export function Deletedata(infoId){
  return request({
    url:'/wms/info/'+infoId,
    method:'DELETE'
  })
}
// 订单数据
export function Orderdata(query){
  return request({
    url:'/wms/put/list',
    method:'get',
    params:query
  })
}
// 订单修改
export function Modifyorder(data){
  return request({
    url:'/wms/put',
    method:'PUT',
    data:data
  })
}
// 通过确认
export function Byconfirmation(oId){
  return request({
    url:'/wms/put/check/'+oId,
    method:'get',
  })
}
// 通过拒绝
export function Byrefusing(data){
  return request({
    url:'wms/put',
    method:'put',
    data:data
  })
}
// 管理费用项
export function expenseitem(id){
  return request({
    url:'/wms/put/'+id,
    method:'get',
  })
}
// 订单删除
export function orderdel(id){
  return request({
    url:'/wms/put/'+id,
    method:'DELETE',
  })
}
// 出库订单列表
export function Issueorderlist(query){
  return request({
    url:'/wms/take/list',
    method:'get',
    params:query
  })
}
// 收货人
export function Consigneedetails(query){
  return request({
    url:'/wms/supplier/list',
    method:'get',
    params:query
  })
}
// 修改出库
export function Issuemodification(data){
  return request({
    url:'/wms/take',
    method:'put',
    data:data
  })
}
// 出库通过确认
export function Issueconfirmed(oId){
  return request({
    url:'/wms/take/check/'+oId,
    method:'get',
  })
}
// 出库通过拒绝
export function Issuerejected(data){
  return request({
    url:'wms/take',
    method:'put',
    data:data
  })
}
// 出库管理费用项
export function Issuemanag(id){
  return request({
    url:'/wms/take/'+id,
    method:'get',
  })
}
// 出库管理费用项修改
export function Modifyissuess(data){
  return request({
    url:'/wms/take',
    method:'PUT',
    data:data
  })
}
// 出库删除
export function Issuedeletion(id){
  return request({
    url:'/wms/take/'+id,
    method:'DELETE',
  })
}
// 出库运单信息
export function OutboundInformation(data){
  return request({
    url:'/wms/take',
    method:'post',
    data:data
  })
}
// 盘库保存
export function Inventorysaving(data){
  return request({
    url:'/wms/inventory/batch',
    method:'post',
    data:data
  })
}
// 盘库记录
export function Inventoryrecord(query){
  return request({
    url:'/wms/inventory/list',
    method:'get',
    params:query
  })
}
// 打印预览
export function Printpreview(query){
  return request({
    url:'/wms/info/list',
    method:'get',
    params:query
  })
}
// 台账
export function Ledgerdata(query){
  return request({
    url:'/wms/product/book',
    method:'get',
    params:query
  })
}
// 仓库变动报表
export function Warehousechange(data){
  return request({
    url:'/wms/product/report',
    method:'post',
    data:data
  })
}
// 仓储用户列表
export function storagelist(query){
  return request({
    url:'/wms/cost/all',
    method:'get',
    params:query
  })
}
// 记录明细
export function Recorddetails(query){
  return request({
    url:'/wms/cost/list',
    method:'get',
    params:query
  })
}
// 缴费确认
export function Paymentconfirmation(data){
  return request({
    url:'/wms/cost',
    method:'put',
    data:data
  })
}
// 用户仓储新增
export function Newuserwarehouse(data){
  return request({
    url:'/wms/cost',
    method:'post',
    data:data
  })
}
// 上传图片
export function imgshang(data){
  return request({
    url:'/common/upload',
    method:'post',
    data:data
  })
}
// 收货人新增信息
export function Consigneeinformation(data){
  return request({
    url:'/wms/supplier',
    method:'post',
    data:data
  })
}
// 收货人修改信息
export function Consigne(data){
  return request({
    url:'/wms/supplier',
    method:'put',
    data:data
  }) 
}
// 收货人删除信息
export function Consignedel(sId){
  return request({
    url:'/wms/supplier/'+sId,
    method:'DELETE',
  }) 
}
// 导出
export function exporte(query){
  return request({
    url:'/wms/customer/export',
    method:'get',
    params:query
  })
}
// 导出2
export function exporte2(query){
  return request({
    url:'/common/download',
    method:'get',
    params:query
  })
}
// 修改
export function xi(data){
  return request({
    url:'/wms/product',
    method:'put',
    data:data
  })
}
// 删除
 export function dell(pId){
  return request({
    url:'/wms/product/'+pId,
    method:'DELETE',
  })
 }